#include <stdio.h>
#define N 10

int sumArray(int array[N])
{
    int num;

    for(int i = 0; i <= N; i++)
    {
        num += array[i];
    }

    return num;
}

int main()
{
    int arr[N];
    int sum;

    printf("请输入10个整数：\n");
    for(int i = 0; i <= N; i++)
    {
        scanf("%d", arr[i]);
    }
    
    sum = sumArray(arr[N]);

    printf("这个整数数组的总和为：%d\n", sum);

    return 0;
}